package exo1;

public abstract class Compte {
	
	public Compte(String nom, int numero, double solde) {
		super();
		this.nom = nom;
		this.numero = numero;
		this.solde = solde;
	}
	private String nom;
	private int numero;
    private double solde;
	
	public boolean deposerSolde(double montant){
		this.solde=this.solde + montant;
		return true;			
	}
	
	public boolean debiterSolde(double montant){
		this.solde = this.solde - montant;
		return false;
	}

	public double getSolde() {
		return solde;
	}

	public void setSolde(double solde) {
		this.solde = solde;
	}

}
